#include<stdlib.h>
#include<time.h>
#include<vector>
#include<string>
#include<math.h>
void init()
{
	srand(time(0));
}
double random_num(char* mode)
{
	init();
	if(mode[0]=='+'&&mode[1]=='i')
		return abs((int)rand()*rand()/rand());
	if(mode[0]=='-'&&mode[1]=='i')
		return -1*(int)rand()*rand()/rand();
	if(mode[0]=='+'&&mode[1]=='f')
		return abs((double)rand()*((double)rand()/rand()));
	if(mode[0]=='-'&&mode[1]=='f')
		return -1*((double)rand()*((double)rand()/rand()));
	if(mode[0]=='+'&&mode[1]=='l')
		return abs(rand()*rand()*rand()*rand());
	if(mode[0]=='-'&&mode[1]=='l')
		return -1*(rand()*rand()*rand()*rand());
}